package stock.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/stock")
public class StockContral {

    @Value("${server.port}")
    String port;
    @RequestMapping("/deduct")
    public String deduct(){

        System.out.println("扣减库存");
        return "扣减库存:端口:"+port;
    }


}
